package com.hbnu.system.controller;


import com.hbnu.system.core.base.Rest;
import com.hbnu.system.model.entity.Audit;
import com.hbnu.system.service.AuditService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ${lei}
 * @since 2023-05-16
 */
@RestController
@RequestMapping("/audit")
@Api(tags = "审核搜索模块")
public class AuditController {

    @Autowired
    AuditService auditService;

    @ApiOperation("审核模块-通过副键id搜索相关审核信息")
    @GetMapping("/GetauditByFRI")
    public Rest<List<Audit>> GetauditByFRI(String ID){
        List<Audit> auditGetauditByFRI = auditService.selectAuidtByFRI(ID);
        return Rest.success(auditGetauditByFRI);
    }
}
